CREATE TABLE [dbo].[TTTIPO_ITES]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[ID_INTE] [dbo].[TD_VC_002] NOT NULL,
[NU_DETA] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TTTIPO_IT__NU_DE__41448AA6] DEFAULT ((0)),
[NO_INTE] [dbo].[TD_VC_050] NOT NULL,
[NO_FISI_TABL] [dbo].[TD_VC_020] NOT NULL,
[NO_LOGI_TABL] [dbo].[TD_VC_050] NOT NULL,
[CO_IMPO_0001] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0002] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0003] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0004] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0005] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0006] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0007] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0008] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0009] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0010] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0011] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0012] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0013] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0014] [dbo].[TD_VC_050] NULL,
[CO_IMPO_0015] [dbo].[TD_VC_050] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTTIPO_IT__CO_US__4238AEDF] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTTIPO_IT__FE_US__432CD318] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTTIPO_IT__CO_US__4420F751] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTTIPO_IT__FE_US__45151B8A] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTTIPO_ITES] ADD CONSTRAINT [PK__TTTIPO_I__A4A40F7C3B0C8E63] PRIMARY KEY CLUSTERED  ([CO_EMPR], [ID_INTE], [NU_DETA]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTTIPO_ITES] ADD CONSTRAINT [FK__TTTIPO_IT__CO_EM__7993D0C1] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
